package com.flycms.module.cms.dao;
import java.util.List;

import com.flycms.core.entity.PageVo;
import com.flycms.module.cms.model.Custom;
import com.flycms.module.cms.param.CustomParam;
import com.flycms.module.document.model.Document;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface CustomDao {

	int insertSelective(Custom custom);

	int delete(long id);

	Custom queryByPk(long id);

	List<Custom> queryByPage(@Param("param") CustomParam param,
							 @Param("index") Integer index,
							 @Param("size") Integer size);

	int count(@Param("param") CustomParam param);

	List<Custom> selectByIds(@Param("ids") List<Long> ids);
}
 